package com.wxlsoft.excel.convert.model;

import com.alibaba.excel.annotation.ExcelProperty;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 修订记录
 * @author wangxiaoliang
 */
@Getter
@Setter
@ToString
public class IndexTo {
	
	/**
	 * 接口ID, provider + 001
	 */
	@ExcelProperty(index = 0)
    private String interfaceId;	
	
	/**
	 * 交易代码
	 */
	@ExcelProperty(index = 1)
    private String tradeCode;
	
	/**
	 * 交易名称
	 */
	@ExcelProperty(index = 2)
    private String tradeName;
	
	/**
	 * 服务码
	 */
	@ExcelProperty(index = 3)
    private String serviceCode;
	
	/**
	 * 服务名称
	 */
	@ExcelProperty(index = 4)
    private String serviceName;	
	
	/**
	 * 服务操作ID
	 */
	@ExcelProperty(index = 5)
    private String sceneCode;
	
	/**
	 * 服务操作名称
	 */
	@ExcelProperty(index = 6)
    private String sceneName;
	
	/**
	 * 调用方
	 */
	@ExcelProperty(index = 7)
    private String consume;
	
	/**
	 * 提供方
	 */
	@ExcelProperty(index = 8)
    private String provider;
	
	/**
	 * 接口方向
	 */
	@ExcelProperty(index = 9)
    private String direction;
	
	/**
	 * 接口提供系统ID
	 */
	@ExcelProperty(index = 10)
    private String providerSystemId;
	
	/**
	 * 报文类型式
	 */
	@ExcelProperty(index = 11)
    private String dataBodyLayout;
	
	/**
	 * 处理人
	 */
	@ExcelProperty(index = 12)
    private String processor;
	
	/**
	 * 更新时间
	 */
	@ExcelProperty(index = 13)
    private String updateTime;	
	
	/**
	 * 报文转换方向(C->P)
	 */
	@ExcelProperty(index = 14)
    private String dataBodyDirection;
	
	/**
	 * 调用方系统名称
	 */
	@ExcelProperty(index = 15)
    private String consumeSystemName;	
	
	/**
	 * 参考文档
	 */
	@ExcelProperty(index = 16)
    private String document;
	
	/**
	 * 是否穿透
	 */
	@ExcelProperty(index = 17)
    private String isPenetrate;
	
	/**
	 * 业务报文头编号
	 */
	@ExcelProperty(index = 18)
    private String dataHeader;
	
	/**
	 * 接口状态
	 */
	@ExcelProperty(index = 19)
    private String interfaceStatus;		
	
	/**
	 * 场景状态
	 */
	@ExcelProperty(index = 20)
    private String sceneStatus;	
	
	/**
	 * 是否标准
	 */
	@ExcelProperty(index = 21)
    private String isStandard;
	
	public boolean toBooleanStandard() {
		return "是".equals(isStandard);
	}
	
	@Getter
	public static class IndexNote {
		
		private String note;
		
		public IndexNote(String note) {
			this.note = note;
		}
		
	}	
	
}
